package ruifight.member.model.security;

import java.util.Collection;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;
import org.springframework.security.core.userdetails.UserDetails;

public class MyUserDetail extends User implements UserDetails {
	
	private static final long serialVersionUID = 1L;
	
	public MyUserDetail(String username, String password, Collection<? extends GrantedAuthority> authorities) {
		super(username, password, authorities);
	}
	private Long userInfoId;

    private String userName;

    private Integer userType;

    private String telephone;

    private String mobile;
    
    private String pwd;

    private String certificateCode;

    private String openId;
    
    private Long shopInfoId;
    
    private Long memberInfoId;
    
	public Long getUserInfoId() {
		return userInfoId;
	}



	public void setUserInfoId(Long userInfoId) {
		this.userInfoId = userInfoId;
	}



	public String getUserName() {
		return userName;
	}



	public void setUserName(String userName) {
		this.userName = userName;
	}



	public Integer getUserType() {
		return userType;
	}



	public void setUserType(Integer userType) {
		this.userType = userType;
	}



	public String getTelephone() {
		return telephone;
	}



	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}



	public String getMobile() {
		return mobile;
	}



	public void setMobile(String mobile) {
		this.mobile = mobile;
	}



	public String getCertificateCode() {
		return certificateCode;
	}



	public void setCertificateCode(String certificateCode) {
		this.certificateCode = certificateCode;
	}


	public String getOpenId() {
		return openId;
	}



	public void setOpenId(String openId) {
		this.openId = openId;
	}



	public Long getShopInfoId() {
		return shopInfoId;
	}



	public void setShopInfoId(Long shopInfoId) {
		this.shopInfoId = shopInfoId;
	}



	public Long getMemberInfoId() {
		return memberInfoId;
	}



	public void setMemberInfoId(Long memberInfoId) {
		this.memberInfoId = memberInfoId;
	}



	public static long getSerialversionuid() {
		return serialVersionUID;
	}



	public String getPwd() {
		return pwd;
	}



	public void setPwd(String pwd) {
		this.pwd = pwd;
	}
}

